package fr.adfm.dto;

import java.io.Serializable;

public class TailleDto implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String taille;

	public TailleDto() {
	}

	public TailleDto(String taille) {
		this.taille = taille;
	}

	protected TailleDto(Long id, String taille) {
		this.id = id;
		this.taille = taille;
	}

	public String getTaille() {
		return taille;
	}

	public void setTaille(String taille) {
		this.taille = taille;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return ",taille=" + taille;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((taille == null) ? 0 : taille.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TailleDto other = (TailleDto) obj;
		if (taille == null) {
			if (other.taille != null)
				return false;
		} else if (!taille.equals(other.taille))
			return false;
		return true;
	}
	

}
